#include "EStaticCollider.h"

#include "eCPP.h"

namespace engine
{
//------------------------------------------------------------
// EStaticColliderDesc
//------------------------------------------------------------
bool EStaticColliderDesc::isValid() const
{
  return true;
}
//------------------------------------------------------------
// EStaticCollider
//------------------------------------------------------------
EStaticCollider::EStaticCollider(const EStaticColliderDesc& desc ) :
EEntity(EEntity::ENTITY_GROUP_COLLIDERS, "col", desc.m_sModelFileName ),
m_Desc( desc )
{
  cASSERT( desc.isValid() );
}

//------------------------------------------------------------
bool EStaticCollider::load  ( SceneManager& ogreSceneManager )
{
  cTEST( EEntity::load( ogreSceneManager ) );
  Entity* pEntity = getOgreEntity();
  cASSERT( pEntity != NULL );
  pEntity->setMaterialName("debug/collider");
  pEntity->setCastShadows( false );

  return true;
}

} // end namespace